<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

	<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/> 
	<p:dialog modal="true" 
			  widgetVar="statusDialog"  
			  styleClass="ui-dialog-loading" 
			  resizable="false" 
			  draggable="false" 
			  height="25"
			  width="240" 
			  appendToBody="true"
			  closable="false" >  
	    <p:graphicImage value="/images/ajaxloading.gif" />  
	</p:dialog>
</html>	  